package com.qf.shopping.pojo.article;

import java.io.Serializable;

/**
 * @Author 82024
 * @Long 2019/4/12 17:36
 * @Version 1.0
 * @Description 资讯表
 **/
public class Article implements Serializable {

    private static final long serialVersionUID = 6373732895184160273L;

    private Long id;    //ID    主键
    private String title;   //资讯标题
    private Integer categoryId;    //资讯分类  0：未启用   1：已启用
    private String source;  //资讯来源
    private String author;  //资讯作者
    private String summary; //资讯摘要
    private String coverPic;    //封面图片URL（不带域名）
    private String thumbPic;    //缩略图URL（不带域名）
    private String tags;    //资讯标签  此字段为冗余字段，存放逗号分割的标签ID，用于便捷的进行资讯的筛选等操作，真正的资讯和标签的关联关系存放在article_tag表中
    private String content; //资讯内容
    private String previewUrl;  //资讯预览URL（不带域名）
    private String qrcodeUrl;   //资讯二维码图片URL
    private Integer pvCount;   //PV数
    private Integer uvCount;   //UV数
    private Integer commentCount;  //评论数
    private Integer likeCount; //点赞数
    private Integer favCount;  //收藏数
    private Integer shareCount;    //分享数（预留字段）
    private Integer channelTop;    //是否栏目推荐（预留字段）
    private Integer homeTop;   //是否首页推荐
    private Integer createUid; //发起人   如果是外部资源，那么该字段值为0
    private String createUname; //发起人姓名
    private Long createTime;    //发起时间
    private Integer submitUid; //资讯提交人
    private Long submitTime;    //资讯提交时间
    private Integer state; //资讯审核状态    0：草稿；1：等待内容审核   2：内容审核通过  3：内容审核退回
    private Integer stateOrder;    //资讯审核状态排序码 该字段用于内容列表按照审核状态降序排列：0：草稿；1：等待内容审核；2：内容审核通过；3：内容审核退回
    private Integer lastAuditUid;  //最后审核人
    private String lastAuditUname;   //最后审核人姓名
    private Long lastAuditTime; //最后审核时间    仅当发布审核通过时才记录该时间
    private String lastRejectReason;    //最后审核退回原因
    private Integer publishState;  //资讯发布状态    0：未发布   1：已发布
    private Integer publishUid;    //资讯发布人
    private String publishUname;    //资讯发布人姓名
    private Long publishTime;   //资讯发布时间
    private Integer unpublishUid;  //资讯撤销发布人员
    private String unpublishUname;  //资讯撤销人员姓名
    private Long unpublishTime; //资讯撤销发布时间
    private String unpublishReason; //资讯撤销发布原因
    private Integer lastUpdateUid; //最后修改人
    private String lastUpdateUname; //最后修改人姓名
    private Long lastUpdateTime;    //最后修改时间
    private String seoKeywords; //SEO关键字
    private String seoDescription;  //SEO描述
    private Integer allowUp;   //是否允许点赞    0：不允许   1：允许
    private Integer allowFav;  //是否允许收藏    0：不允许   1：允许


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getCoverPic() {
        return coverPic;
    }

    public void setCoverPic(String coverPic) {
        this.coverPic = coverPic;
    }

    public String getThumbPic() {
        return thumbPic;
    }

    public void setThumbPic(String thumbPic) {
        this.thumbPic = thumbPic;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPreviewUrl() {
        return previewUrl;
    }

    public void setPreviewUrl(String previewUrl) {
        this.previewUrl = previewUrl;
    }

    public String getQrcodeUrl() {
        return qrcodeUrl;
    }

    public void setQrcodeUrl(String qrcodeUrl) {
        this.qrcodeUrl = qrcodeUrl;
    }

    public Integer getPvCount() {
        return pvCount;
    }

    public void setPvCount(Integer pvCount) {
        this.pvCount = pvCount;
    }

    public Integer getUvCount() {
        return uvCount;
    }

    public void setUvCount(Integer uvCount) {
        this.uvCount = uvCount;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    public Integer getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    public Integer getFavCount() {
        return favCount;
    }

    public void setFavCount(Integer favCount) {
        this.favCount = favCount;
    }

    public Integer getShareCount() {
        return shareCount;
    }

    public void setShareCount(Integer shareCount) {
        this.shareCount = shareCount;
    }

    public Integer getChannelTop() {
        return channelTop;
    }

    public void setChannelTop(Integer channelTop) {
        this.channelTop = channelTop;
    }

    public Integer getHomeTop() {
        return homeTop;
    }

    public void setHomeTop(Integer homeTop) {
        this.homeTop = homeTop;
    }

    public Integer getCreateUid() {
        return createUid;
    }

    public void setCreateUid(Integer createUid) {
        this.createUid = createUid;
    }

    public String getCreateUname() {
        return createUname;
    }

    public void setCreateUname(String createUname) {
        this.createUname = createUname;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Integer getSubmitUid() {
        return submitUid;
    }

    public void setSubmitUid(Integer submitUid) {
        this.submitUid = submitUid;
    }

    public Long getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(Long submitTime) {
        this.submitTime = submitTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getStateOrder() {
        return stateOrder;
    }

    public void setStateOrder(Integer stateOrder) {
        this.stateOrder = stateOrder;
    }

    public Integer getLastAuditUid() {
        return lastAuditUid;
    }

    public void setLastAuditUid(Integer lastAuditUid) {
        this.lastAuditUid = lastAuditUid;
    }

    public String getLastAuditUname() {
        return lastAuditUname;
    }

    public void setLastAuditUname(String lastAuditUname) {
        this.lastAuditUname = lastAuditUname;
    }

    public Long getLastAuditTime() {
        return lastAuditTime;
    }

    public void setLastAuditTime(Long lastAuditTime) {
        this.lastAuditTime = lastAuditTime;
    }

    public String getLastRejectReason() {
        return lastRejectReason;
    }

    public void setLastRejectReason(String lastRejectReason) {
        this.lastRejectReason = lastRejectReason;
    }

    public Integer getPublishState() {
        return publishState;
    }

    public void setPublishState(Integer publishState) {
        this.publishState = publishState;
    }

    public Integer getPublishUid() {
        return publishUid;
    }

    public void setPublishUid(Integer publishUid) {
        this.publishUid = publishUid;
    }

    public String getPublishUname() {
        return publishUname;
    }

    public void setPublishUname(String publishUname) {
        this.publishUname = publishUname;
    }

    public Long getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Long publishTime) {
        this.publishTime = publishTime;
    }

    public Integer getUnpublishUid() {
        return unpublishUid;
    }

    public void setUnpublishUid(Integer unpublishUid) {
        this.unpublishUid = unpublishUid;
    }

    public String getUnpublishUname() {
        return unpublishUname;
    }

    public void setUnpublishUname(String unpublishUname) {
        this.unpublishUname = unpublishUname;
    }

    public Long getUnpublishTime() {
        return unpublishTime;
    }

    public void setUnpublishTime(Long unpublishTime) {
        this.unpublishTime = unpublishTime;
    }

    public String getUnpublishReason() {
        return unpublishReason;
    }

    public void setUnpublishReason(String unpublishReason) {
        this.unpublishReason = unpublishReason;
    }

    public Integer getLastUpdateUid() {
        return lastUpdateUid;
    }

    public void setLastUpdateUid(Integer lastUpdateUid) {
        this.lastUpdateUid = lastUpdateUid;
    }

    public String getLastUpdateUname() {
        return lastUpdateUname;
    }

    public void setLastUpdateUname(String lastUpdateUname) {
        this.lastUpdateUname = lastUpdateUname;
    }

    public Long getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Long lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getSeoKeywords() {
        return seoKeywords;
    }

    public void setSeoKeywords(String seoKeywords) {
        this.seoKeywords = seoKeywords;
    }

    public String getSeoDescription() {
        return seoDescription;
    }

    public void setSeoDescription(String seoDescription) {
        this.seoDescription = seoDescription;
    }

    public Integer getAllowUp() {
        return allowUp;
    }

    public void setAllowUp(Integer allowUp) {
        this.allowUp = allowUp;
    }

    public Integer getAllowFav() {
        return allowFav;
    }

    public void setAllowFav(Integer allowFav) {
        this.allowFav = allowFav;
    }

    public Article() {
    }

    public Article(Long id, String title, Integer categoryId, String source, String author, String summary,
                   String coverPic, String thumbPic, String tags, String content, String previewUrl, String qrcodeUrl,
                   Integer pvCount, Integer uvCount, Integer commentCount, Integer likeCount, Integer favCount,
                   Integer shareCount, Integer channelTop, Integer homeTop, Integer createUid, String createUname,
                   Long createTime, Integer submitUid, Long submitTime, Integer state, Integer stateOrder,
                   Integer lastAuditUid, String lastAuditUname, Long lastAuditTime, String lastRejectReason,
                   Integer publishState, Integer publishUid, String publishUname, Long publishTime, Integer unpublishUid,
                   String unpublishUname, Long unpublishTime, String unpublishReason, Integer lastUpdateUid,
                   String lastUpdateUname, Long lastUpdateTime, String seoKeywords, String seoDescription, Integer allowUp,
                   Integer allowFav) {
        this.id = id;
        this.title = title;
        this.categoryId = categoryId;
        this.source = source;
        this.author = author;
        this.summary = summary;
        this.coverPic = coverPic;
        this.thumbPic = thumbPic;
        this.tags = tags;
        this.content = content;
        this.previewUrl = previewUrl;
        this.qrcodeUrl = qrcodeUrl;
        this.pvCount = pvCount;
        this.uvCount = uvCount;
        this.commentCount = commentCount;
        this.likeCount = likeCount;
        this.favCount = favCount;
        this.shareCount = shareCount;
        this.channelTop = channelTop;
        this.homeTop = homeTop;
        this.createUid = createUid;
        this.createUname = createUname;
        this.createTime = createTime;
        this.submitUid = submitUid;
        this.submitTime = submitTime;
        this.state = state;
        this.stateOrder = stateOrder;
        this.lastAuditUid = lastAuditUid;
        this.lastAuditUname = lastAuditUname;
        this.lastAuditTime = lastAuditTime;
        this.lastRejectReason = lastRejectReason;
        this.publishState = publishState;
        this.publishUid = publishUid;
        this.publishUname = publishUname;
        this.publishTime = publishTime;
        this.unpublishUid = unpublishUid;
        this.unpublishUname = unpublishUname;
        this.unpublishTime = unpublishTime;
        this.unpublishReason = unpublishReason;
        this.lastUpdateUid = lastUpdateUid;
        this.lastUpdateUname = lastUpdateUname;
        this.lastUpdateTime = lastUpdateTime;
        this.seoKeywords = seoKeywords;
        this.seoDescription = seoDescription;
        this.allowUp = allowUp;
        this.allowFav = allowFav;
    }

    public Article(String title, String source, String author, String summary,
                   String coverPic, String tags, Integer allowUp, Integer allowFav, String content, Long createTime) {
        this.title = title;
        this.source = source;
        this.author = author;
        this.summary = summary;
        this.coverPic = coverPic;
        this.content = content;
        this.createTime = createTime;
        this.tags = tags;
        this.allowUp = allowUp;
        this.allowFav = allowFav;
    }

    @Override
    public String toString() {
        return "Article{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", categoryId=" + categoryId +
                ", source='" + source + '\'' +
                ", author='" + author + '\'' +
                ", summary='" + summary + '\'' +
                ", coverPic='" + coverPic + '\'' +
                ", thumbPic='" + thumbPic + '\'' +
                ", tags='" + tags + '\'' +
                ", content='" + content + '\'' +
                ", previewUrl='" + previewUrl + '\'' +
                ", qrcodeUrl='" + qrcodeUrl + '\'' +
                ", pvCount=" + pvCount +
                ", uvCount=" + uvCount +
                ", commentCount=" + commentCount +
                ", likeCount=" + likeCount +
                ", favCount=" + favCount +
                ", shareCount=" + shareCount +
                ", channelTop=" + channelTop +
                ", homeTop=" + homeTop +
                ", createUid=" + createUid +
                ", createUname='" + createUname + '\'' +
                ", createTime=" + createTime +
                ", submitUid=" + submitUid +
                ", submitTime=" + submitTime +
                ", state=" + state +
                ", stateOrder=" + stateOrder +
                ", lastAuditUid=" + lastAuditUid +
                ", lastAuditUname='" + lastAuditUname + '\'' +
                ", lastAuditTime=" + lastAuditTime +
                ", lastRejectReason='" + lastRejectReason + '\'' +
                ", publishState=" + publishState +
                ", publishUid=" + publishUid +
                ", publishUname='" + publishUname + '\'' +
                ", publishTime=" + publishTime +
                ", unpublishUid=" + unpublishUid +
                ", unpublishUname='" + unpublishUname + '\'' +
                ", unpublishTime=" + unpublishTime +
                ", unpublishReason='" + unpublishReason + '\'' +
                ", lastUpdateUid=" + lastUpdateUid +
                ", lastUpdateUname='" + lastUpdateUname + '\'' +
                ", lastUpdateTime=" + lastUpdateTime +
                ", seoKeywords='" + seoKeywords + '\'' +
                ", seoDescription='" + seoDescription + '\'' +
                ", allowUp=" + allowUp +
                ", allowFav=" + allowFav +
                '}';
    }
}
